package com.bonc.rms.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bonc.rms.dao.PetInfoDao;
import com.bonc.rms.service.PetInfoService;

@Service(value = "petInfoServiceImpl")
public class PetInfoServiceImpl implements PetInfoService{
	@Autowired
	PetInfoDao petInfoDao;

	@Override
	public List<Map<String, Object>> getPetInfo() {
		return petInfoDao.getPetInfo();
	}

	@Override
	public List<Map<String, Object>> updatePetInfo(Integer petId, String petNumber, String petName, String pic,
			String sex, String age, String size, String variety, String character, String price) {
		return petInfoDao.updatePetInfo( petId, petNumber, petName, pic,sex, age, size, variety, character, price);
	}
	
	@Override
	public Object deletePetInfo(Integer petId) {
		return petInfoDao.deletePetInfo(petId);
	}

	@Override
	public List<Map<String, Object>> addPetInfo(Integer petId,  String petName, String pic, String sex,
			String age, String size, String variety, String character, String price) {
		return petInfoDao.addPetInfo( petId,   petName,  pic,  sex,
				 age,  size,  variety,  character,  price);
	}

	@Override
	public List<Map<String, Object>> getSinglePetInfo(Integer petId) {
		return petInfoDao.getSinglePetInfo(petId);
	}

}
